<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-10 09:30:22 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git show-ref</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Plumbing_Commands">
                                Plumbing Commands                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="2cde2ed681e7b2ce884e185a1cfcb1f465bb9904f8121b6b7bed0a9c3a0d2084/70" data-source="git-show-ref" onmousemove="i18n(this)">git-show-ref</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="ff851d91b21b22429459db37b38ceedfa68f6bf08d7c3b5d3ab1ed13e33a46e8/b0" data-source="git-show-ref - List references in a local repository" onmousemove="i18n(this)">git-show-ref &mdash; &scy;&pcy;&icy;&scy;&ocy;&kcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-css" data-highlighted="yes">git show-ref <span class="hljs-selector-attr">[--head]</span> <span class="hljs-selector-attr">[-d | --dereference]</span>
             <span class="hljs-selector-attr">[-s | --hash[=&lt;n&gt;]</span>] <span class="hljs-selector-attr">[--abbrev[=&lt;n&gt;]</span>] <span class="hljs-selector-attr">[--tags]</span>
             <span class="hljs-selector-attr">[--heads]</span> <span class="hljs-selector-attr">[--]</span> <span class="hljs-selector-attr">[&lt;pattern&gt;&hellip;&ZeroWidthSpace;]</span>
git show-ref <span class="hljs-attr">--verify</span> <span class="hljs-selector-attr">[-q | --quiet]</span> <span class="hljs-selector-attr">[-d | --dereference]</span>
             <span class="hljs-selector-attr">[-s | --hash[=&lt;n&gt;]</span>] <span class="hljs-selector-attr">[--abbrev[=&lt;n&gt;]</span>]
             <span class="hljs-selector-attr">[--]</span> <span class="hljs-selector-attr">[&lt;ref&gt;&hellip;&ZeroWidthSpace;]</span>
git show-ref <span class="hljs-attr">--exclude-existing</span><span class="hljs-selector-attr">[=&lt;pattern&gt;]</span>
git show-ref <span class="hljs-attr">--exists</span> &lt;ref&gt;</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="28943cdf6c582cce55d43617bc717274f4f15efa2287b509069fccea6e413f40/77" data-source="Displays references available in a local repository along with the associated commit IDs. Results can be filtered using a pattern and tags can be dereferenced into object IDs. Additionally, it can be used to test whether a particular ref exists." onmousemove="i18n(this)">&Ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&iecy; &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &vcy;&mcy;&iecy;&scy;&tcy;&iecy; &scy;&ocy; &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&acy;&mcy;&icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy; &mcy;&ocy;&zhcy;&ncy;&ocy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;&mcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;, &acy; &tcy;&iecy;&gcy;&icy; &mcy;&ocy;&zhcy;&ncy;&ocy; &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&ycy;&vcy;&acy;&tcy;&softcy; &vcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ycy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="a9018badb84196f8a83cfbab68fc40bce3903806455a431043087d67ff1404ca/5a" data-source="By default, shows the tags, heads, and remote refs." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&iecy;&gcy;&icy;, &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="46448872b0117e541ed4a73c7d8b5030c9a2115665cd39385bf97b4dcc1f2cbd/34" data-source="The &lt;code&gt;--exclude-existing&lt;/code&gt; form is a filter that does the inverse. It reads refs from stdin, one ref per line, and shows those that don&amp;rsquo;t exist in the local repository." onmousemove="i18n(this)">&Fcy;&ocy;&rcy;&mcy;&acy;  <code>--exclude-existing</code>  &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;&iecy;. &Ocy;&ncy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &icy;&zcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&gcy;&ocy; &vcy;&vcy;&ocy;&dcy;&acy;, &pcy;&ocy; &ocy;&dcy;&ncy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy; &ncy;&acy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, &icy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &tcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy;&tcy; &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;.</span></p> <p><span data-i18n="d065da1344af304792bdbb65667a216282a1e4b5036c25364f23715397828ade/42" data-source="The &lt;code&gt;--exists&lt;/code&gt; form can be used to check for the existence of a single references. This form does not verify whether the reference resolves to an actual object." onmousemove="i18n(this)">&Fcy;&ocy;&rcy;&mcy;&acy;  <code>--exists</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ocy;&dcy;&ncy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Ecy;&tcy;&acy; &fcy;&ocy;&rcy;&mcy;&acy; &ncy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy;, &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &lcy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;.</span></p> <p><span data-i18n="d476135b0fe444d3c364a80f460aa66ad481f491526ff0a145ec6b14bf70bbb0/40" data-source="Use of this utility is encouraged in favor of directly accessing files under the &lt;code&gt;.git&lt;/code&gt; directory." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ecy;&tcy;&ocy;&jcy; &ucy;&tcy;&icy;&lcy;&icy;&tcy;&ycy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&rcy;&yacy;&mcy;&ocy;&gcy;&ocy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy; &kcy; &fcy;&acy;&jcy;&lcy;&acy;&mcy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;  <code>.git</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-show-ref.txt---head"><span data-i18n="26655b723f3bfee11ca708295bd699fdedc8f358b85fe70b20b594f45904d836/55" data-source="--head" onmousemove="i18n(this)">--head</span></dt> <dd> <p><span data-i18n="479fe9d0b1f21b8bee916e68bcb5bb1333f92726d857ce34086be0aaf819f9fa/8b" data-source="Show the HEAD reference, even if it would normally be filtered out." onmousemove="i18n(this)">&Pcy;&ocy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; HEAD, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&acy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ocy;&tcy;&fcy;&icy;&lcy;&softcy;&tcy;&rcy;&ocy;&vcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;.</span></p> </dd> <dt id="Documentation/git-show-ref.txt---heads"><span data-i18n="7ecd5598bf2e151de5838cdd16a8af7e49f0ad82ef569e4b34036efe7baef2c2/6d" data-source="--heads" onmousemove="i18n(this)">--heads</span></dt> <dt id="Documentation/git-show-ref.txt---tags"><span data-i18n="ca2ed6721d83f4f364916ec2259d24adfdba6b230be747d80ed87a4797650daf/8c" data-source="--tags" onmousemove="i18n(this)">--tags</span></dt> <dd> <p><span data-i18n="27bcfc01b7328819bc27c457ba4c6a62109d624e42aa0d3b01b5e616ba407ef2/71" data-source="Limit to &amp;quot;refs/heads&amp;quot; and &amp;quot;refs/tags&amp;quot;, respectively. These options are not mutually exclusive; when given both, references stored in &amp;quot;refs/heads&amp;quot; and &amp;quot;refs/tags&amp;quot; are displayed." onmousemove="i18n(this)">&Ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&softcy;&tcy;&iecy;&scy;&softcy;  &quot;refs/heads&quot;  &icy;  &quot;refs/tags&quot;  &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;. &Ecy;&tcy;&icy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;&ycy; &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&icy;&scy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&shchcy;&icy;&mcy;&icy;; &iecy;&scy;&lcy;&icy; &zcy;&acy;&dcy;&acy;&ncy;&ycy; &ocy;&bcy;&acy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;, &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &khcy;&rcy;&acy;&ncy;&yacy;&shchcy;&icy;&iecy;&scy;&yacy; &vcy;  &quot;refs/heads&quot;  &icy;  &quot;refs/tags&quot; .</span></p> </dd> <dt id="Documentation/git-show-ref.txt--d"><span data-i18n="50e09407a18bedd64baf0b99825a8178d7446731615b85452ea6b99573469dcc/b1" data-source="-d" onmousemove="i18n(this)">-d</span></dt> <dt id="Documentation/git-show-ref.txt---dereference"><span data-i18n="c6345b224fef568c7e67e610a3e6e1dbc6bcdc7e524284fdee13c2c737f1b652/09" data-source="--dereference" onmousemove="i18n(this)">--dereference</span></dt> <dd> <p><span data-i18n="3cd31612ceac359ef36baaefc8901dc64b09d92dd91cb0db27d2727a99e8f5e6/11" data-source="Dereference tags into object IDs as well. They will be shown with &lt;code&gt;^{}&lt;/code&gt; appended." onmousemove="i18n(this)">&Rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&ycy;&vcy;&acy;&ncy;&icy;&iecy; &tcy;&iecy;&gcy;&ocy;&vcy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ycy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Ocy;&ncy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &scy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy;&mcy;  <code>^{}</code> .</span></p> </dd> <dt id="Documentation/git-show-ref.txt--s"><span data-i18n="922e17b4edd60ff0277a57db2cdf26a407350a6ffbd4129318f293841d289609/7a" data-source="-s" onmousemove="i18n(this)">-s</span></dt> <dt id="Documentation/git-show-ref.txt---hashltngt"><span data-i18n="2664e2610aceef632a58ca12b14b680ff7790ffb8bbb39f0e84b430b865a8e2c/3c" data-source="--hash[=&amp;lt;n&amp;gt;]" onmousemove="i18n(this)">--hash[=&lt;n&gt;]</span></dt> <dd> <p><span data-i18n="b150b3774381a061227e26b95f164054e010ead046d5b58d68d6f3ddad873f89/3d" data-source="Only show the OID, not the reference name. When combined with &lt;code&gt;--dereference&lt;/code&gt;, the dereferenced tag will still be shown after the OID." onmousemove="i18n(this)">&Pcy;&ocy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; OID, &acy; &ncy;&iecy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Vcy; &scy;&ocy;&chcy;&iecy;&tcy;&acy;&ncy;&icy;&icy; &scy;  <code>--dereference</code>  &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &tcy;&iecy;&gcy; &pcy;&ocy;-&pcy;&rcy;&iecy;&zhcy;&ncy;&iecy;&mcy;&ucy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&tcy;&softcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; OID.</span></p> </dd> <dt id="Documentation/git-show-ref.txt---verify"><span data-i18n="aa35d6fa1d5803195a7201018b81073f2abbad4b9e759a76972e8a8ed21e09f0/4b" data-source="--verify" onmousemove="i18n(this)">--verify</span></dt> <dd> <p><span data-i18n="1ba7883c6a2cc5e3d02e2b81c12e507b83393fd894e77fdd54e85934737aca22/d9" data-source="Enable stricter reference checking by requiring an exact ref path. Aside from returning an error code of 1, it will also print an error message if &lt;code&gt;--quiet&lt;/code&gt; was not specified." onmousemove="i18n(this)">&Vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&iecy; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&tcy;&rcy;&ocy;&gcy;&ucy;&yucy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ucy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &tcy;&rcy;&iecy;&bcy;&ucy;&yacy; &tcy;&ocy;&chcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &kcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;. &Pcy;&ocy;&mcy;&icy;&mcy;&ocy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;&acy; &kcy;&ocy;&dcy;&acy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; 1, &ocy;&ncy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy;&vcy;&iecy;&dcy;&iecy;&tcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;, &iecy;&scy;&lcy;&icy;  <code>--quiet</code>  &ncy;&iecy; &bcy;&ycy;&lcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;.</span></p> </dd> <dt id="Documentation/git-show-ref.txt---exists"><span data-i18n="eca870ceb8fc1c35825d123fec8be3db32d08633c0bb5cb27c6a2a62c0f12aa7/7b" data-source="--exists" onmousemove="i18n(this)">--exists</span></dt> <dd> <p><span data-i18n="7b4f6cc10200eb18dfcf60e133f7c8aca10a8e19834dfd7ddb19f8320ca51dd2/48" data-source="Check whether the given reference exists. Returns an exit code of 0 if it does, 2 if it is missing, and 1 in case looking up the reference failed with an error other than the reference being missing." onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&softcy;&tcy;&iecy;, &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &lcy;&icy; &dcy;&acy;&ncy;&ncy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;. &Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &kcy;&ocy;&dcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; 0, &iecy;&scy;&lcy;&icy; &dcy;&acy;, 2, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &icy; 1, &iecy;&scy;&lcy;&icy; &pcy;&ocy;&icy;&scy;&kcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy; &icy;&zcy;-&zcy;&acy; &ocy;&shcy;&icy;&bcy;&kcy;&icy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ocy;&jcy; &ocy;&tcy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> </dd> <dt id="Documentation/git-show-ref.txt---abbrevltngt"><span data-i18n="982fe5caefde56120ee669acd52e44de3f6e359e4706a7dc8c6edc5cce030357/41" data-source="--abbrev[=&amp;lt;n&amp;gt;]" onmousemove="i18n(this)">--abbrev[=&lt;n&gt;]</span></dt> <dd> <p><span data-i18n="6ee6431ec5f808dcc381455ceb0fa2cdf221ef4c1f15b5b3cdffa2ea394fea63/f9" data-source="Abbreviate the object name. When using &lt;code&gt;--hash&lt;/code&gt;, you do not have to say &lt;code&gt;--hash --abbrev&lt;/code&gt;; &lt;code&gt;--hash=n&lt;/code&gt; would do." onmousemove="i18n(this)">&Scy;&ocy;&kcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;. &Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>--hash</code>  &ncy;&iecy; &ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &pcy;&rcy;&ocy;&icy;&zcy;&ncy;&ocy;&scy;&icy;&tcy;&softcy;  <code>--hash --abbrev</code> ;  <code>--hash=n</code>  &pcy;&ocy;&dcy;&ocy;&jcy;&dcy;&iecy;&tcy;.</span></p> </dd> <dt id="Documentation/git-show-ref.txt--q"><span data-i18n="5ce681666a15a41274346f65b8bcbf56f8e8170ac00706a44a09ee4d786a8609/cd" data-source="-q" onmousemove="i18n(this)">-q</span></dt> <dt id="Documentation/git-show-ref.txt---quiet"><span data-i18n="b00818cdc507640687732769ee1cb501db377927ee76d03df23978bd0d706888/e2" data-source="--quiet" onmousemove="i18n(this)">--quiet</span></dt> <dd> <p><span data-i18n="af10e15315cb28270a63beead47ea9662f6cc4696f09e341cf8ba3c5e7c61d6e/e7" data-source="Do not print any results to stdout. Can be used with &lt;code&gt;--verify&lt;/code&gt; to silently check if a reference exists." onmousemove="i18n(this)">&Ncy;&iecy; &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy;&softcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;. &Mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &scy;  <code>--verify</code>  &dcy;&lcy;&yacy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> </dd> <dt id="Documentation/git-show-ref.txt---exclude-existingltpatterngt"><span data-i18n="c06fc14495d5fb82808627b6fa8aa34b9820133f2804b62b170e1a634cf9897f/fe" data-source="--exclude-existing[=&amp;lt;pattern&amp;gt;]" onmousemove="i18n(this)">--exclude-existing[=&lt;pattern&gt;]</span></dt> <dd> <p><span data-i18n="afd912b218f4f8b0678917dc5b7c8d20d290214e963c5273edfe8fd66b55ca52/9d" data-source="Make &lt;code&gt;git show-ref&lt;/code&gt; act as a filter that reads refs from stdin of the form &lt;code&gt;^(?:&amp;lt;anything&amp;gt;\s)?&amp;lt;refname&amp;gt;(?:\^{})?$&lt;/code&gt; and performs the following actions on each: (1) strip &lt;code&gt;^{}&lt;/code&gt; at the end of line if any; (2) ignore if pattern is provided and does not head-match refname; (3) warn if refname is not a well-formed refname and skip; (4) ignore if refname is a ref that exists in the local repository; (5) otherwise output the line." onmousemove="i18n(this)">&Zcy;&acy;&scy;&tcy;&acy;&vcy;&softcy;&tcy;&iecy;  <code>git show-ref</code>  &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &icy;&zcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&gcy;&ocy; &vcy;&vcy;&ocy;&dcy;&acy; &fcy;&ocy;&rcy;&mcy;&ycy;  <code>^(?:&lt;anything&gt;\s)?&lt;refname&gt;(?:\^{})?$</code>  &icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &ncy;&acy;&dcy; &kcy;&acy;&zhcy;&dcy;&ycy;&mcy; &icy;&zcy; &ncy;&icy;&khcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy;: (1) &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;  <code>^{}</code>  &vcy; &kcy;&ocy;&ncy;&tscy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&ocy;&vcy;&ocy;&jcy; &icy;&mcy;&iecy;&iecy;&tcy;&scy;&yacy;; (2) &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &iecy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy; &icy; &ocy;&ncy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy;; (3) &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&acy;&tcy;&softcy;, &iecy;&scy;&lcy;&icy; refname &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&rcy;&rcy;&iecy;&kcy;&tcy;&ncy;&ycy;&mcy;, &icy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;; (4) &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &iecy;&scy;&lcy;&icy; refname &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&ocy;&jcy;, &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;; (5) &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &vcy;&ycy;&vcy;&iecy;&dcy;&icy;&tcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;.</span></p> </dd> <dt id="Documentation/git-show-ref.txt-ltpatterngt82308203"><span data-i18n="f73b8ba73605efe4bde5cc02ee25c1bbf0e6e66e24b5ec544bd6263a0f93f94d/b3" data-source="&amp;lt;pattern&amp;gt;&amp;hellip;" onmousemove="i18n(this)">&lt;pattern&gt;&hellip;</span></dt> <dd> <p><span data-i18n="20ff92a8a8a76ff7d7f3f2b075575ce1e82490fd76f74af8a500043036056069/5a" data-source="Show references matching one or more patterns. Patterns are matched from the end of the full name, and only complete parts are matched, e.g. &lt;code&gt;master&lt;/code&gt; matches &lt;code&gt;refs/heads/master&lt;/code&gt;, &lt;code&gt;refs/remotes/origin/master&lt;/code&gt;, &lt;code&gt;refs/tags/jedi/master&lt;/code&gt; but not &lt;code&gt;refs/heads/mymaster&lt;/code&gt; or &lt;code&gt;refs/remotes/master/jedi&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&ocy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&mcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy;. &SHcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy; &kcy;&ocy;&ncy;&tscy;&acy; &pcy;&ocy;&lcy;&ncy;&ocy;&gcy;&ocy; &icy;&mcy;&iecy;&ncy;&icy;, &icy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&lcy;&ncy;&ycy;&iecy; &chcy;&acy;&scy;&tcy;&icy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>master</code>  &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;  <code>refs/heads/master</code> ,  <code>refs/remotes/origin/master</code> ,  <code>refs/tags/jedi/master</code> , &ncy;&ocy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;  <code>refs/heads/mymaster</code>  &icy;&lcy;&icy;  <code>refs/remotes/master/jedi</code> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_output"><span data-i18n="b2439bcb8dee14b685f137f294b0e0cb62f5aadf45143ce01d79777d435a93b4/6b" data-source="Output" onmousemove="i18n(this)">Output</span></h2> <div> <p><span data-i18n="efcae882b9422fab078c1134552675a47f8b6be601d5c56583a283b0980b19db/a5" data-source="The output is in the format:" onmousemove="i18n(this)">&Vcy;&ycy;&vcy;&ocy;&dcy; &icy;&mcy;&iecy;&iecy;&tcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;:</span></p> <div> <div> <pre class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">oid</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">ref</span>&gt;</span> LF</pre> </div> </div> <p><span data-i18n="74d2d951a827ab7fff55add181ee13c3594736271c02b27de9d8cfa351b88ef7/3a" data-source="For example," onmousemove="i18n(this)">For example,</span></p> <div> <div> <pre class="hljs language-bash">$ git show-ref --<span class="hljs-built_in">head</span> --dereference
832e76a9899f560a90ffd62ae2ce83bbeff58f54 HEAD
832e76a9899f560a90ffd62ae2ce83bbeff58f54 refs/heads/master
832e76a9899f560a90ffd62ae2ce83bbeff58f54 refs/heads/origin
3521017556c5de4159da4615a39fa4d5d2c279b5 refs/tags/v0.99.9c
6ddc0964034342519a87fe013781abf31c6db6ad refs/tags/v0.99.9c^{}
055e4ae3ae6eb344cbabf2a5256a49ea66040131 refs/tags/v1.0rc4
423325a2d24638ddcc82ce47be5e40be550f4507 refs/tags/v1.0rc4^{}
...</pre> </div> </div> <p><span data-i18n="1b351a19a01f594ca5bd359e332aad993be976fc77133e617ecc7ae5b7608073/38" data-source="When using &lt;code&gt;--hash&lt;/code&gt; (and not &lt;code&gt;--dereference&lt;/code&gt;), the output is in the format:" onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;  <code>--hash</code>  (&acy; &ncy;&iecy;  <code>--dereference</code> ) &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;:</span></p> <div> <div> <pre class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">oid</span>&gt;</span> LF</pre> </div> </div> <p><span data-i18n="74d2d951a827ab7fff55add181ee13c3594736271c02b27de9d8cfa351b88ef7/3a" data-source="For example," onmousemove="i18n(this)">For example,</span></p> <div> <div> <pre class="hljs language-sql">$ git <span class="hljs-keyword">show</span><span class="hljs-operator">-</span><span class="hljs-keyword">ref</span> <span class="hljs-comment">--heads --hash</span>
<span class="hljs-number">2e3</span>ba0114a1f52b47df29743d6915d056be13278
<span class="hljs-number">185008</span>ae97960c8d551adcd9e23565194651b5d1
<span class="hljs-number">03</span>adf42c988195b50e1a1935ba5fcbc39b2b029b
...</pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <p><span data-i18n="57dbdca02fca554ed92425755f02d5c7a29c5f67d9e1ecf7e1c3356060b779fe/1c" data-source="To show all references called &amp;quot;master&amp;quot;, whether tags or heads or anything else, and regardless of how deep in the reference naming hierarchy they are, use:" onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zcy;&icy;&tcy;&softcy; &vcy;&scy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  &quot;master&quot; , &bcy;&ucy;&dcy;&softcy; &tcy;&ocy; &tcy;&iecy;&gcy;&icy;, &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &icy;&lcy;&icy; &chcy;&tcy;&ocy;-&tcy;&ocy; &iecy;&shchcy;&iecy;, &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &ncy;&acy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &gcy;&lcy;&ucy;&bcy;&ocy;&kcy;&ocy; &ocy;&ncy;&icy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &vcy; &icy;&iecy;&rcy;&acy;&rcy;&khcy;&icy;&icy; &icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;:</span></p> <div> <div> <pre class="hljs language-sql">        git <span class="hljs-keyword">show</span><span class="hljs-operator">-</span><span class="hljs-keyword">ref</span> master</pre> </div> </div> <p><span data-i18n="eaea027ed3153a376e1d923ba79a8994100c9ec70b789cc7e439e39b6b804773/0f" data-source="This will show &amp;quot;refs/heads/master&amp;quot; but also &amp;quot;refs/remote/other-repo/master&amp;quot;, if such references exist." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&ocy;&kcy;&acy;&zhcy;&iecy;&tcy;  &quot;refs/heads/master&quot; , &acy; &tcy;&acy;&kcy;&zhcy;&iecy;  &quot;refs/remote/other-repo/master&quot; , &iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy;.</span></p> <p><span data-i18n="ca933ef8ccf246d86cc837db4e24fc10791c7108a3c0d12d13945fa707378cc9/ef" data-source="When using the &lt;code&gt;--verify&lt;/code&gt; flag, the command requires an exact path:" onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &fcy;&lcy;&acy;&gcy;&acy;  <code>--verify</code>  &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&chcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy;:</span></p> <div> <div> <pre class="hljs language-sql">        git <span class="hljs-keyword">show</span><span class="hljs-operator">-</span><span class="hljs-keyword">ref</span> <span class="hljs-comment">--verify refs/heads/master</span></pre> </div> </div> <p><span data-i18n="03e3d8a80ceeeb51f5db7f1bfbcffc7ff4bf09a4f8d6020f0ffee3c69ddd4dfe/83" data-source="will only match the exact branch called &amp;quot;master&amp;quot;." onmousemove="i18n(this)">&bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&ocy;&chcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&iecy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  &quot;master&quot; .</span></p> <p><span data-i18n="5d15f4f2b4ecfac5a40a8f1af8d9466acc54575544fd4c138ae11153c4ad99b5/5e" data-source="If nothing matches, &lt;code&gt;git show-ref&lt;/code&gt; will return an error code of 1, and in the case of verification, it will show an error message." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ncy;&iecy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&iecy;&tcy;,  <code>git show-ref</code>  &vcy;&iecy;&rcy;&ncy;&iecy;&tcy; &kcy;&ocy;&dcy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; 1, &acy; &vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &pcy;&ocy;&kcy;&acy;&zhcy;&iecy;&tcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;.</span></p> <p><span data-i18n="557cf1d2145fd0243a9ec4020d120f0465d32a1f062042f68e4ef2d7e5f061e9/88" data-source="For scripting, you can ask it to be quiet with the &lt;code&gt;--quiet&lt;/code&gt; flag, which allows you to do things like" onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&iecy;&vcy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&ocy;&pcy;&rcy;&ocy;&scy;&icy;&tcy;&softcy; &iecy;&gcy;&ocy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&tcy;&softcy; &tcy;&icy;&shcy;&icy;&ncy;&ucy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &fcy;&lcy;&acy;&gcy;&acy;  <code>--quiet</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy;&acy;&mcy; &dcy;&iecy;&lcy;&acy;&tcy;&softcy; &tcy;&acy;&kcy;&icy;&iecy; &vcy;&iecy;&shchcy;&icy;, &kcy;&acy;&kcy;</span></p> <div> <div> <pre class="hljs language-bash">        git show-ref --quiet --verify -- <span class="hljs-string">&quot;refs/heads/<span class="hljs-variable">$headname</span>&quot;</span> ||
                <span class="hljs-built_in">echo</span> <span class="hljs-string">&quot;<span class="hljs-variable">$headname</span> is not a valid branch&quot;</span></pre> </div> </div> <p><span data-i18n="e1f63062c2bce2ffce13a4c2f64bae12c0ccbfdc8cfc147d1443461f0426f30b/24" data-source="to check whether a particular branch exists or not (notice how we don&amp;rsquo;t actually want to show any results, and we want to use the full refname for it in order to not trigger the problem with ambiguous partial matches)." onmousemove="i18n(this)">&chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &lcy;&icy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &icy;&lcy;&icy; &ncy;&iecy;&tcy; (&ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy; &mcy;&ycy; &ncy;&iecy; &khcy;&ocy;&tcy;&icy;&mcy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy;&icy;&iecy;-&lcy;&icy;&bcy;&ocy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy; &icy; &khcy;&ocy;&tcy;&icy;&mcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ncy;&iecy;&iecy; &pcy;&ocy;&lcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ncy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy; &scy; &ncy;&iecy;&ocy;&dcy;&ncy;&ocy;&zcy;&ncy;&acy;&chcy;&ncy;&ycy;&mcy;&icy; &chcy;&acy;&scy;&tcy;&icy;&chcy;&ncy;&ycy;&mcy;&icy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&yacy;&mcy;&icy;).</span></p> <p><span data-i18n="2b6f49995c966cf2d2561fab4e8579e19de59ca7936fe85a3b41d79fa45b525b/2e" data-source="To show only tags, or only proper branch heads, use &lt;code&gt;--tags&lt;/code&gt; and/or &lt;code&gt;--heads&lt;/code&gt; respectively (using both means that it shows tags and heads, but not other random references under the refs/ subdirectory)." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy;&gcy;&icy; &icy;&lcy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ycy;&iecy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>--tags</code>  &icy;/&icy;&lcy;&icy;  <code>--heads</code>  &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; (&icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&bcy;&ocy;&icy;&khcy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&iecy;&gcy;&icy; &icy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy;, &ncy;&ocy; &ncy;&iecy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;&ncy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &pcy;&ocy;&dcy;&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; refs/).</span></p> <p><span data-i18n="b5feb2514b8d09b56dce057a56aafcdad8833396dd3fad28c93321062ae47f13/6c" data-source="To do automatic tag object dereferencing, use the &lt;code&gt;-d&lt;/code&gt; or &lt;code&gt;--dereference&lt;/code&gt; flag, so you can do" onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&iecy; &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &tcy;&iecy;&gcy;&acy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &fcy;&lcy;&acy;&gcy;  <code>-d</code>  &icy;&lcy;&icy;  <code>--dereference</code> .</span></p> <div> <div> <pre class="hljs language-sql">        git <span class="hljs-keyword">show</span><span class="hljs-operator">-</span><span class="hljs-keyword">ref</span> <span class="hljs-comment">--tags --dereference</span></pre> </div> </div> <p><span data-i18n="b8dcfeb26947d986bf57d9a0d33f88b7857d0246b68655f5ca2f3d57617b62b0/66" data-source="to get a listing of all tags together with what they dereference." onmousemove="i18n(this)">&chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy;&scy;&iecy;&khcy; &tcy;&iecy;&gcy;&ocy;&vcy; &vcy;&mcy;&iecy;&scy;&tcy;&iecy; &scy; &tcy;&iecy;&mcy;, &chcy;&tcy;&ocy; &ocy;&ncy;&icy; &rcy;&acy;&zcy;&ycy;&mcy;&iecy;&ncy;&ocy;&vcy;&ycy;&vcy;&acy;&yucy;&tcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_files"><span data-i18n="abc7e9892806b047b4d4786b3685285543f76ca314c4c76246d5f6544c7856c9/5d" data-source="Files" onmousemove="i18n(this)">Files</span></h2> <div> <p><span data-i18n="d60d9fef0523cbee3a5f18fe721260939517c6ad5f252bff9feb1aebaf24fac3/4b" data-source="&lt;code&gt;.git/refs/*&lt;/code&gt;, &lt;code&gt;.git/packed-refs&lt;/code&gt;" onmousemove="i18n(this)"><code>.git/refs/*</code>, <code>.git/packed-refs</code></span></p> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p><span data-i18n="6aec4606b59666d8c2a1ab58f09b07d9397acfd34f73807f60933ba736eadcd4/fa" data-source="&lt;a href=&quot;git-for-each-ref&quot;&gt;git-for-each-ref[1]&lt;/a&gt;, &lt;a href=&quot;git-ls-remote&quot;&gt;git-ls-remote[1]&lt;/a&gt;, &lt;a href=&quot;git-update-ref&quot;&gt;git-update-ref[1]&lt;/a&gt;, &lt;a href=&quot;gitrepository-layout&quot;&gt;gitrepository-layout[5]&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-for-each-ref.html">git-for-each-ref[1]</a> ,  <a href="git-ls-remote.html">git-ls-remote[1]</a> ,  <a href="git-update-ref.html">git-update-ref[1]</a> ,  <a href="gitrepository-layout.html">gitrepository-layout[5]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-show-ref">https://git-scm.com/docs/git-show-ref</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-sparse-checkout.html">
                            git sparse-checkout                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-stash.html">
                            git stash                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-status.html">
                            git status                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-stripspace.html">
                            git stripspace                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-submodule.html">
                            git submodule                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-svn.html">
                            git svn                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-switch.html">
                            git switch                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-show-ref.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>